package com.cloud.cloudvideo.entity;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class Plupload {
	
	@Value("${file.uploadPath}")
	private String uploadPath;
	  
	/** 文件临时名(打文件被分解时)或原名 */
	private String name;
	/** 总的块数 */
	private int chunks = -1;
	/** 当前块数（从0开始计数） */
	private int chunk = -1;
	/** HttpServletRequest对象，不能直接传入进来，需要手动传入 */
	private HttpServletRequest request;
	/** 保存文件上传信息，不能直接传入进来，需要手动传入 */
	private MultipartFile multipartFile;

	
}
